home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_fadewomantest.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  94 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_fadewomantest.cog
  4. #
  5. # Sophia helps Indy through a critical gate
  6. #
  7. # [CMG]
  8. #
  9. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14. # ................... MESSAGES ...................
  15.  
  16.     message    startup        
  17.     message    pulse        
  18.  
  19.     
  20. # .................. OBJECTS .....................    
  21.  
  22.     thing        woman
  23.     thing        particlespot    local
  24.     thing        ringspot        local
  25.  
  26. # ................. TEMPLATES ....................
  27.     template    particlesystem    local
  28.     template    ring=+ripples_vert    local
  29.     template    orb=lensflarew        local
  30.     template    spotref=ghost        local
  31.  
  32. # ................. VARS ....................
  33.     int            ringtrack        local
  34.     int            orbtrack        local
  35.  
  36. # ................. VECTORS ....................
  37.     vector    ringstart            local  
  38.     vector    ringend                local
  39.  
  40.     vector    orbstart            local    
  41.     vector    orbend                local
  42.     
  43. end
  44.  
  45. # ==============================================================================
  46.  
  47. code
  48.  
  49. startup:
  50.  
  51.     ClearThingFlags(woman, 0x80000);
  52.     Sleep(3.0);
  53.     # set fx anim vectors
  54.     ringstart    = VectorSet(0.05, 0.05, 0.5);
  55.     ringend    = VectorSet(0.125, 0.2, 0.0);
  56.     orbstart    = VectorSet(0.05, 0.05, 0.0);
  57.     orbend    = VectorSet(0.2, 0.2, 1.0);
  58.  
  59.     # find the fx position 1 meter from woman's feet
  60.     ringspot=CreateThingAtPos(spotref, GetThingSector(woman), VectorAdd(GetThingPos(woman), '0 0 0.025'), '0 0 0');
  61.     
  62.     # set pulse speed for rings 
  63.     SetPulse(0.25);
  64.     
  65.     # Create and animate the orb
  66.     orbtrack = CreateThing(orb, ringspot);
  67.     AnimateSpriteSize(orbtrack, orbstart, orbend, 0.5);
  68.     
  69.     # fade the woman
  70.     ThingFadeAnim(woman, 1, 0, 1.0, 0);
  71.     ClearThingFlags(woman, 0x4000);
  72.     
  73.     Sleep(1.0);
  74.     SetPulse(0);
  75.     
  76.     # diminish the orb
  77.     AnimateSpriteSize(orbtrack, orbend, orbstart, 0.5);
  78.  
  79. return;
  80. # ..............................................................................
  81. pulse:
  82.  
  83.     ringtrack = CreateThing(ring, ringspot);
  84.     AnimateSpriteSize(ringtrack, ringstart, ringend, 0.5);
  85.  
  86. return;
  87.  
  88.  
  89. # ..............................................................................
  90. end
  91.  
  92.  
  93.  
  94.